cmake_minimum_required(VERSION 3.16)

project(PLFinder LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(PLFinder
    Const.h main.cpp LineFinder.cpp LineFinder.h Map.cpp Map.h PLFinder.cpp PLFinder.h ThreadPool.h
)

include(GNUInstallDirs)
install(TARGETS PLFinder
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
